using System;

namespace Qplus.protocol
{

    /**
     * 
     * 接收语音数据通知
     *
     */
    public class U2C_NOTIFY_ROOM_RECVVOICE : InPacket{

	    private long roomID;
	
	    private long userID;
	
	    private int frames;
	
	    private byte[] voiceData;
	
	    
	    protected override void parseBody(byte[] data, int offset, int count) {
		    roomID = get4(data);
		    userID = get4(data);
		    frames = get1(data);
		    int leng = get1(data);
		    voiceData = getN(data, leng);
	    }

	    public byte[] getVoiceData() {
		    return voiceData;
	    }

	    public void setVoiceData(byte[] voiceData) {
		    this.voiceData = voiceData;
	    }

	    public long getUserID() {
		    return userID;
	    }

	    public void setUserID(long userID) {
		    this.userID = userID;
	    }

	    public long getRoomID() {
		    return roomID;
	    }

	    public void setRoomID(long roomID) {
		    this.roomID = roomID;
	    }

	    public int getFrames() {
		    return frames;
	    }

	    public void setFrames(int frames) {
		    this.frames = frames;
	    }

	    //	kal_uint32 roomID; 房间号码
    //	kal_uint32 userID;
    //	kal_uint8 textLen; 数据长度
    //	kal_uint8 text[];数据
	}

}
